<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>3.4常用的CSS属性</title>
</head>
<style>
  .box{
    width: 300px;
    height: 300px;
    background: wheat;
    margin-left: 20px;
    margin-top: 30px;
    border: 10px solid red;
    padding-left: 20px;
  }
</style>
<body>
  <h3>背景-背景色</h3>
  <p style="background-color:wheat;">我是段落</p>
  <h3>背景-背景图片</h3>
  <p style="height:300px;background-image: url(./images/img1.jpg);">
    我是段落
  </p>
  <h3>文本-缩进</h3>
  <p style="background:wheat;text-indent: 30px;">我是段落</p>
  <h3>文本-水平对齐</h3>
  <p style="text-align: center;">我是段落</p>
  <h3>文本-文本装饰</h3>
  <p style="text-decoration: underline;">我是下划线</p>
  <p style="text-decoration: overline;">我是上划线</p>
  <p style="text-decoration: line-through;">我是删除线</p>
  <h3>字体-指定字体</h3>
  <p style="font-family: '微软雅黑';">我是段落</p>
  <h3>字体-字体大小</h3>
  <p style="font-size: 30px;">我是段落</p>
  <h3>字体-字体粗细</h3>
  <p style="font-weight: 900;">我是段落</p>
  <h3>盒子模型</h3>
  <p class="box">我是段落</p>
</body>
</html>